package com.atguigu.Mytest;

public class Resource implements Runnable{
    private int number = 50;

    @Override
    public void run() {
        while (number>0){
            System.out.println(Thread.currentThread().getName() + "正在售卖第：" + (number) + "张票，还剩："+(number--)+"张票");
        }
    }
}
